package com.example.demotest.pojo.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

public class MessageSendDto {
    @NotNull(message = "消息内容不能为空")
    @Size(min = 1, max = 500, message = "消息长度必须在1-500个字符之间")
    private String content;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}